package com.yonyou.gmmc.service.JDInterface.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TM_TP_BALANCE_DETAIL")
public class TmTpBalanceDetail {
    @Id
    @Column(name = "BALANCE_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TM_TP_BALANCE_DETAIL")
    private Long balanceId;

    @Column(name = "ID")
    private Long id;

    @Column(name = "ACCOUNT_TYPE")
    private Long accountType;

    @Column(name = "AMOUNT")
    private Long amount;

    @Column(name = "PIN")
    private String pin;

    @Column(name = "ORDER_ID")
    private String orderId;

    @Column(name = "TRADE_TYPE")
    private Long tradeType;

    @Column(name = "TRADE_TYPE_NAME")
    private String tradeTypeName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREATED_DATE")
    private Date createdDate;

    @Column(name = "NOTE_PUB")
    private String notePub;

    @Column(name = "TRADE_NO")
    private Long tradeNo;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREATE_DATE")
    private Date createDate;
    
    @Column(name = "CREATE_BY")
    private Long createBy;
    

    /**
     * @return BALANCE_ID
     */
    public Long getBalanceId() {
        return balanceId;
    }

    /**
     * @param balanceId
     */
    public void setBalanceId(Long balanceId) {
        this.balanceId = balanceId;
    }

    /**
     * @return ID
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return ACCOUNT_TYPE
     */
    public Long getAccountType() {
        return accountType;
    }

    /**
     * @param accountType
     */
    public void setAccountType(Long accountType) {
        this.accountType = accountType;
    }

    /**
     * @return AMOUNT
     */
    public Long getAmount() {
        return amount;
    }

    /**
     * @param amount
     */
    public void setAmount(Long amount) {
        this.amount = amount;
    }

    /**
     * @return PIN
     */
    public String getPin() {
        return pin;
    }

    /**
     * @param pin
     */
    public void setPin(String pin) {
        this.pin = pin;
    }

    /**
     * @return ORDER_ID
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * @param orderId
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * @return TRADE_TYPE
     */
    public Long getTradeType() {
        return tradeType;
    }

    /**
     * @param tradeType
     */
    public void setTradeType(Long tradeType) {
        this.tradeType = tradeType;
    }

    /**
     * @return TRADE_TYPE_NAME
     */
    public String getTradeTypeName() {
        return tradeTypeName;
    }

    /**
     * @param tradeTypeName
     */
    public void setTradeTypeName(String tradeTypeName) {
        this.tradeTypeName = tradeTypeName;
    }

    /**
     * @return CREATED_DATE
     */
    public Date getCreatedDate() {
        return createdDate;
    }

    /**
     * @param createdDate
     */
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    /**
     * @return NOTE_PUB
     */
    public String getNotePub() {
        return notePub;
    }

    /**
     * @param notePub
     */
    public void setNotePub(String notePub) {
        this.notePub = notePub;
    }

    /**
     * @return TRADE_NO
     */
    public Long getTradeNo() {
        return tradeNo;
    }

    /**
     * @param tradeNo
     */
    public void setTradeNo(Long tradeNo) {
        this.tradeNo = tradeNo;
    }

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}
    
}